<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>欢迎光临啊~</p>
    <p>现在时间：{{ date }}</p>
    {% for name in names %} <!--控制结构-->
        {{name}}
    {% endfor %}
    <br><br>
    <!-- 在网页打印表格，以及如何迭代 -->
    任务：<br>
    <table border="1">
        {% for key, value in task.items() %}
            <tr>
                <td>{{key}}</td>
                <td>{{value}}</td>
            </tr>
        {% endfor %}
        
    </table>
</body>
</html>